<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="common/common::common('字典数据表管理')"/>
<script src="/static/base/dict/data/index.js" charset="utf-8"></script>
</head>
<body class="bg-color">
<div class="body_head">
    <section class="section_title">
        <h2> 数据字典: <span th:text="${dictTypeName}"></span>
            <span class="title_span">&nbsp;&nbsp; 数据字典<span th:text="${dictTypeName}"></span>信息列表</span>
        </h2>
    </section>
</div>
<div class="body_info">
    <div class="data_div">
        <!-- 按钮、搜索框 -->
        <div class="tool-bar-head">
            <div class="tool-bar-head-left">
                <button shiro:hasPermission="base:baseDictData:add"
                        class="layui-btn layui-btn-sm layui-btn-normal" onclick="saveBaseDictData()">
                    <i class="layui-icon"></i>新增
                </button>
                <button type="button" class="layui-btn layui-btn-sm layui-btn-normal" onclick="goBack()">
                    <i class="layui-icon layui-icon-prev"></i>返回
                </button>
            </div>
            <div class="tool-bar-head-right">
                <form class="layui-form layui-form-pane" onsubmit="javascript:return false;">
                    <div class="layui-form-item query">
                        <label class="layui-form-label" style="padding-right: 0;">名称</label>
                        <div class="layui-input-inline" style="margin-right:0;">
                            <input class="layui-input" id="name" name="name"
                                   onchange="javascript:$('#searchBtn').click();">
                        </div>
                        <button id="searchBtn" class="layui-btn layui-btn-normal" data-type="reload">搜索</button>
                    </div>
                </form>
            </div>
        </div>

        <!-- 表格 -->
        <div class="layui_table">
            <table class="layui-hide" id="layTable" lay-filter="baseDictDataLay"></table>
            <div id="layPage"></div>
        </div>
    </div>
</div>

<input type="text" th:value="*{dictType}" id="dictType" name="dictType" style="visibility: hidden;">

<script type="text/html" id="status">
    <input type="checkbox" name="status" value="{{d.id}}" title="禁用" lay-filter="status" {{
           d.status== '0' ? 'checked' : '' }}>
</script>

<!-- 操作工具栏 -->
<script type="text/html" id="toolbarHandle">
    <a shiro:hasPermission="base:baseDictData:edit" class="tool-bar-btn edit-button" lay-event="edit">编辑</a>
    <a shiro:hasPermission="base:baseDictData:del" class="tool-bar-btn remove-button" lay-event="del">删除</a>
</script>

</body>
</html>